import { apiSlice } from "@store/apiSlice/index";

export const ArticleApiSlice = apiSlice.injectEndpoints({
  endpoints: (builder) => ({
    // 获取文章列表
    requestArticles: builder.query<ArticleResponse, ArticleParams>({
      query: (params) => ({ url: "/patient/home/knowledge", params }),
    }),
  }),
});

export const { useLazyRequestArticlesQuery } = ArticleApiSlice;